home *** CD-ROM | disk | FTP | other *** search
Makefile | 1992-10-26 | 2.5 KB | 113 lines |
- # This is where mint.prg sits, init.prg should be in the same place unless
- # you have directed mint to look elsewhere using a mint.cnf file.
-
- MINTDIR=/c/mint
-
- # This is where all your executables are held.
-
- BINDIR=/bin
- USRBINDIR=/usr/bin
-
- # This is the directory which will be come /etc using a symbolic link set up
- # in your mint.cnf. For OS's other than MiNT leave it as /etc.
-
- ETCDIR=/etc
-
- # This is the extention given to executables which will be called from the
- # command line.
-
- TTPEXT=.ttp
-
- # This is the extention given to init, MiNT expects it to be .prg.
-
- PRGEXT=.prg
-
- SHELL=/bin/sh.ttp
- MAKE=/bin/make.ttp
- CFLAGS=-O -mbaserel -mpcrel
-
- all: lib init login getty who finger ac wlogin last write
-
- # If you have mntlib10 or below or are compiling this for an OS other than
- # MiNT, uncomment the line containing (cd lib ; $(MAKE))
-
- lib: lib/libusers.a
-
- lib/libusers.a: lib/utmp.c lib/wtmp.c
- (cd lib ; $(MAKE))
-
- init: init/init$(PRGEXT)
-
- init/init$(PRGEXT): init/init.c init/getttyent.c
- ( cd init ; $(MAKE) )
-
- login: login/login$(TTPEXT)
-
- login/login$(TTPEXT): login/login.c login/fcrypt.c
- ( cd login ; $(MAKE) login.ttp )
- ( cd login ; $(MAKE) passwd.ttp )
-
- getty: getty/getty
-
- getty/getty: getty/getty.c
- ( cd getty ; $(MAKE) )
-
- who: who/who$(TTPEXT)
-
- who/who$(TTPEXT): who/who.c
- ( cd who ; $(MAKE) )
-
- last: last/last$(TTPEXT)
-
- last/last$(TTPEXT): last/last.c
- ( cd last ; $(MAKE) )
-
- finger: finger/finger$(TTPEXT)
-
- finger/finger$(TTPEXT): finger/finger.c
- ( cd finger ; $(MAKE) )
-
- write: write/write$(TTPEXT)
-
- write/write$(TTPEXT): write/write.c
- ( cd write ; $(MAKE) )
-
- ac: ac/ac$(TTPEXT)
-
- ac/ac$(TTPEXT): ac/ac.c
- ( cd ac ; $(MAKE) )
-
- wlogin: wlogin/wlogin$(TTPEXT)
-
- wlogin/wlogin$(TTPEXT): wlogin/wlogin.c wlogin/makefile
- ( cd wlogin ; $(MAKE) )
-
- sh: sh/sh.ttp
-
- sh/sh.ttp:
- ( cd sh ; $(MAKE) )
-
- install:
- cp init/init.prg $(MINTDIR)/init$(PRGEXT)
- cp login/login.ttp $(BINDIR)/login$(TTPEXT)
- cp login/passwd.ttp $(BINDIR)/passwd$(TTPEXT)
- cp getty/getty $(ETCDIR)/getty
- cp who/who.ttp $(USRBINDIR)/who$(TTPEXT)
- cp last/last.ttp $(USRBINDIR)/last$(TTPEXT)
- cp finger/finger.ttp $(USRBINDIR)/finger$(TTPEXT)
- cp write/write.ttp $(USRBINDIR)/write$(TTPEXT)
- cp ac/ac.ttp $(USRBINDIR)/ac$(TTPEXT)
- cp wlogin/wlogin.ttp $(USRBINDIR)/wlogin$(TTPEXT)
- cp sh/sh.ttp $(BINDIR)/sh$(TTPEXT)
-
- man:
- cp man/ac.8 /usr/man/man8
- cp man/getty.8 /usr/man/man8
- cp man/gettytab.5 /usr/man/man5
- cp man/wlogin.1 /usr/man/man1
-
- clean:
- -$(BINDIR)/rm init/*.o
- -$(BINDIR)/rm login/*.o
- -$(BINDIR)/rm getty/*.o
-